{include file="header.html"}

<div class="page-header">
	<h6>
		订单管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			订单详情
		</small>
	</h6>
</div><!-- /.page-header -->

<div class="row">
<div class="col-xs-12">
	<form class="form-horizontal" role="form" method="post" action="?app=order&act=edit" enctype="multipart/form-data">
	<input type="hidden" id="id" name="id" value="{$row->id}" />
	<div class="profile-user-info profile-user-info-striped">
		<div class="profile-info-row">
			<div class="profile-info-name"> ID </div>
			<div class="profile-info-value">
				<span>{$row->id}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 订单号 </div>
			<div class="profile-info-value">
				<span>{$row->order_sn}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 美容师 </div>
			<div class="profile-info-value">
				<span>{$row->beautician_name}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 门店 </div>
			<div class="profile-info-value">
				<span>{$row->shop_name}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 服务时间 </div>
			<div class="profile-info-value">
				<span><input type="text" name="service_time" id="service_time" value="{$row->service_time}" /></span>
			</div>
		</div>				
		<div class="profile-info-row">
			<div class="profile-info-name"> 服务地址 </div>
			<div class="profile-info-value">
				<span><input type="text" name="full_address" id="full_address" value="{$row->full_address}" class="col-xs-6" /></span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 下单人 </div>
			<div class="profile-info-value">
				<span>{$row->name}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 下单人电话 </div>
			<div class="profile-info-value">
				<span>{$row->mobile}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 项目 </div>
			<div class="profile-info-value">
				<table width="100%">
					<tr>
						{foreach from=$row->projects item=project name=project}
						<td>
							<img src="{$project->project_pic}" width="60" /> <br />
							{$project->project_name} <br />
							{if $project->meal_id>0} 
							<button class="btn btn-minier btn-yellow">使用套餐</button>
							{/if}
						</td>
						{/foreach}
					</tr>
				</table>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 订单总价 </div>
			<div class="profile-info-value">
				<span><font color=red>￥{$row->total_price}</font> 元</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 下单时间 </div>
			<div class="profile-info-value">
				<span>{$row->add_time|date_format:"%Y-%m-%d %H:%I:%S"}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 支付时间 </div>
			<div class="profile-info-value">
				<span>{if $row->paid_time} {$row->paid_time|date_format:"%Y-%m-%d %H:%I:%S"}{/if}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 状态 </div>
			<div class="profile-info-value">
				<span>
				{if $row->status==1}
				<select name="status" id="status">
				<option value="">请选择</option>
				<option value="1" selected>已支付</option>
				<option value="3">进行中</option>
				</select>
				{else}
				{$row->status_name}
				{/if}
				</span>
				<input type="hidden" name="origin_status" id="origin_status" value="{$row->status}" />
			</div>
		</div>

		
	</div>

	<div class="clearfix form-actions">
		<div class="col-md-offset-3 col-md-9">
			<button class="btn btn-info" type="submit">
				<i class="ace-icon fa fa-check bigger-110"></i>
				提交
			</button>

			&nbsp; &nbsp; &nbsp;
			<button class="btn" type="reset">
				<i class="ace-icon fa fa-undo bigger-110"></i>
				重置
			</button>

			&nbsp; &nbsp; &nbsp;
			<button class="btn btn-info" type="button" onclick="javascript:history.go(-1)">
				<i class="ace-icon fa fa-check bigger-110"></i>
				返回
			</button>
		</div>
	</div>
</form>
</div>
</div>

{include file="footer.html"}
<script>
$(function(){
	$('#service_time').datepicker({
		useStyle:'datepicker2',
		readonly:false,
		showTime:true,
		showSecond:false,
		format:'yyyy-mm-dd hh:nn'
	});
});
</script>